import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {axios} from './utils/axios'
//基准路径
import { BASE_URL } from "./config/const"

import './styles/common.css' // 全局样式
import './styles/touch.css' //自适应处理
import './styles/animate.min.css' // 预设css3库
import './styles/font/iconfont.css' // 阿里巴巴图标库

// elementUi组件库
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

//全局安装ElementUi
Vue.use(ElementUI, {
  zIndex: 1000
})

//配置API接口路径
Vue.prototype.BASE_URL = BASE_URL

Vue.prototype.$http = axios // this.$http

Vue.config.productionTip = false
new Vue({
  router,
  store,
  beforeCreate () {
    Vue.prototype.$bus = this // 安装全局事件总线
  },
  render: h => h(App)
}).$mount('#app')
